<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript" async="" src="gdtcIndex_js/joya.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-transform">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <title>格调同城首页</title>
    <meta name="Keywords" content="格调同城">
    <meta name="Description" content="格调同城提供休闲零食、母婴玩具、进口食品、服饰内衣，生鲜、家电家居、手机电脑、宠物用品等各个品类的优质商品。">
    <!--css start-->
    <link href="gdtcIndex_css/global_site_index2.css" rel="stylesheet" type="text/css">
    <link href="gdtcIndex_css/iconfont.css" rel="stylesheet" type="text/css">
    <link href="gdtcIndex_css/index.css" rel="stylesheet" type="text/css">
    <!--css end-->
    <style>
        #chat_f1 {
            position: fixed;
            right: 0px;
            top: 220px;
            width: 93px;
            z-index: 11;
            _position: absolute;
            _top: expression(eval(document.documentElement.scrollTop+220));
        }
        #chat_f1_main {
            height: 134px;
            background: url(cssImages/kf.gif) no-repeat;
        }
        #close {
            display: block;
            width: 17px;
            height: 17px;
            margin-left: 76px;
            cursor: pointer;
        }
        .chat_f1_expr {
            width: 82px;
            height: 0px;
        }
        .list {
            border: 1px solid #dbdbdb;
            border-top-color: rgb(219, 219, 219);
            border-top-style: solid;
            border-top-width: 1px;
            border-top: none;
            overflow: hidden;
            color: #787878;
            background: #fff;
            padding-top: 5px;
        }
        .name {
            line-height: 20px;
            text-align: center;
        }
    </style>

    <!-- head include start -->
    <script type="text/javascript">
        (function () {
            try {
                window.__flagPrivilege = 1;
            } catch (err) {
            }
        })();
    </script>
    <!-- head include end -->
    <script type="text/javascript" charset="UTF-8" src="gdtcIndex_js/login_frame_client.js"></script>
</head>
<body>
<div class="hd_header_wrap">
    <div class="hd_top_bar">
        <div class="wrap clearfix">
            <div class="hd_topbar_home">
                <i class="icon iconfont"></i>
                <ul class="hd_topbar_home_ul">
                    <a href="" title="网警提示" clstag="pageclick|keycount|shouye_20181018|toolbar_Announcement1">
                        <li class="hd_topbar_home_li"><span class="text">网警提示</span></li>
                    </a>
                </ul>
            </div>
            <div class="hd_topbar_right">
                <ul>
                    <li id="global_unlogin">
                        <div class="hd_unlogin" clstag="pageclick|keycount|shouye_20181018|toolbar_Login">
                            <span class="hd_hi">你好:</span>
                            <a href="login.html" class="hd_login_link" id="dl">登录&nbsp;</a>
                            <a href="register.html" class="hd_regist_link" id="zc">&nbsp;注册</a>
                        </div>
                    </li>
                    <li id="global_login" class="" style="display:none" data-type="2017">
                        <div class="hd_login">
                            <div class="hd_login_name_con">
                                <span class="hd_hi">你好,</span>
                                <a href="" id="name" class="hd_login_name"></a>

                            </div>
                            <a href="" class="hd_vip hd_vip__gradeStyle__" ><img id="imgValidateCode" src="" style="width: 100px;height: 35px;margin-top: -10px"></a>&nbsp;&nbsp;
                            <a id="tc" onclick="tc()">退出</a>
                        </div>
                    </li>
                    <li>
                        <div class="hd_menu" clstag="pageclick|keycount|shouye_20181018|toolbar_VipClub">
                            <a href=""><i class="icon iconfont"></i><span class="text">会员俱乐部</span></a>
                        </div>
                    </li>
                    <li>
                        <div class="hd_menu" clstag="pageclick|keycount|shouye_20181018|toolbar_Orders">
                            <a href="" rel="nofollow">
                                <i class="icon iconfont"></i><span class="text">我的订单</span></a>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div style="width:100%;height: 180px;background-color:white;">
        <div class="header_bp">
            <div class="header_bp_img"
                 style="background:url(//img20.360buyimg.com/img/jfs/t26527/196/1706417703/4559/6d078fba/5bea3883N86dafa72.png) center no-repeat"></div>
            <div class="wrap hd_header">
                <div class="hd_logo_area">
                    <a href="" class="hd_logo" clstag="pageclick|keycount|shouye_20181018|YHDLogo"></a>
                        <a class="hd_slogan" href="javascript:;" clstag="pageclick|keycount|shouye_20181018|YHDLogoAds">
                            <div class="inner"><img src="img/格调同城2.png"></div>
                        </a>
                </div>
                <div class="hd_header_right">
                    <div class="clearfix">
                        <div class="hd_head_search" style="z-index: 501;">
                            <div class="hd_search_form hd_search_normal" style="top:0px" id="hdSearchForm">
                                <div class="hd_fixed_wrap">
                                    <!--<a href="javascript:;" class="hd_fixed_logo"><img src="img/格调同城2.png"-->
                                    <!--alt="" width="190"-->
                                    <!--height="60"></a>-->
                                    <div class="hd_search_wrap clearfix">
                                        <label for="keyword" class="hd_search_tip" style="display:none;"></label>
                                        <input class="hd_search_ipt" name="keyword" id="keyword" type="text"
                                               placeholder="请输入" original="请输入" url="" maxlength="100"
                                               autocomplete="off" x-webkit-speech=""
                                               onwebkitspeechchange="emptySearchBar();"
                                               x-webkit-grammar="builtin:translate">
                                        <button type="button" class="hd_search_btn"
                                                onclick="javascript:searchMeForClick();"
                                                clstag="pageclick|keycount|shouye_20181018|Search"><i
                                                class="icon iconfont"></i></button>
                                    </div>
                                    <!--搜索提示 begin-->
                                    <div id="searchSuggest" class="hd_search_tips_result " style="display:none"
                                         onmouseover="$('#searchSuggest').show()"></div>
                                    <!--搜索提示 end-->
                                </div>
                            </div>
                            <!--搜索推荐-->
                        </div>
                        <div class="hd_mini_cart" id="miniCart" data-version="1"
                             clstag="pageclick|keycount|shouye_20181018|Cart">
                            <u class="hd_c_num " id="in_cart_num" style="display: none"></u>
                            <a class="hd_prism_cart" href="shopcar.html">
                                <em class="icon iconfont"></em><span>购物车</span>
                            </a>
                        </div>
                    </div>
                </div>
                <div class="hd_header_nav">
                    <div class="category-list-root category-list-root_global" id="categoryBox">
                        <div id="shop" class="category-title category-title_global"><span>全部商品</span>
                        </div>

                    </div>
                    <ul class="clearfix nav-list">

                        <li>
                            <a href="" title="超级单品" target="_blank" clstag="pageclick|keycount|shouye_20181018|NaviTab4">超级单品</a>
                        </li>
                        <li>
                            <a href="" title="超级品牌" target="_blank" clstag="pageclick|keycount|shouye_20181018|NaviTab5">超级品牌</a>
                        </li>
                        <li>
                            <a href="" title="会员专区" target="_blank" clstag="pageclick|keycount|shouye_20181018|NaviTab6">会员专区</a>
                        </li>

                    </ul>

                </div>
            </div>
        </div>
    </div>
</div>
<div id="mark_mask"
     style="display:none;position:fixed;top:40px;left:0;z-index:99999999;height:1000px;width:100%;background:rgba(0,0,0,0.4);"></div>
<!--content start-->
<div class="wrap lunbo" clstag="pageclick|keycount|shouye_20181018|slide_Overall">
    <div class="lunbo_img">
        <ul class="lunbo_ul">
            <li class="lunbo_li" style="position: absolute; z-index: 0; display: none;">
                <a href="" adtags="30305.47555881" data-advexp="0" title="满减" class="lunbo_img_a"
                   clstag="pageclick|keycount|shouye_20181018|slideBanner1">
                    <div class="lunbo_li_img"
                         style="background-image: url(//img11.360buyimg.com/img/jfs/t1/18251/21/15354/100129/5caf14baE5f4efa22/7da62f6eb0e75d0c.jpg)"></div>
                </a>
            </li>
            <li class="lunbo_li" style="position: absolute; z-index: 1; display: list-item;">
                <a href="" adtags="30306.47555864" data-advexp="0" title="满减" class="lunbo_img_a"
                   clstag="pageclick|keycount|shouye_20181018|slideBanner2">
                    <div class="lunbo_li_img"
                         style="background-image: url(//img11.360buyimg.com/img/jfs/t1/17214/29/15077/101922/5cad8f4cEd5cafd4c/5db169c70939697d.jpg)"></div>
                </a>
            </li>
            <li class="lunbo_li" style="position: absolute; z-index: 0; display: none;">
                <a href="" adtags="30307.47555883" data-advexp="0" title="满减" class="lunbo_img_a"
                   clstag="pageclick|keycount|shouye_20181018|slideBanner3">
                    <div class="lunbo_li_img"
                         style="background-image: url(//img12.360buyimg.com/img/jfs/t1/22413/19/15235/87875/5caf1c15Ee0f14295/54c3e02db3f20c16.jpg)"></div>
                </a>
            </li>
        </ul>
    </div>
    <div class="lb_tab">
        <ol class="lb_tab_ol">
            <li class="" clstag="pageclick|keycount|shouye_20181018|slideBanner1">
                健康早餐
            </li>
            <li clstag="pageclick|keycount|shouye_20181018|slideBanner2" class="cur">
                乳品饮料
            </li>
            <li class="lb_tab_last_li" clstag="pageclick|keycount|shouye_20181018|slideBanner3">
                个人清洁
            </li>
        </ol>
    </div>
</div>
<div id="new_person_channel" class="con_width new_person" style=""
     clstag="pageclick|keycount|shouye_20181018|NewUserChannel">
    <a href="">
        <img src="image/72eb1993f4cd9f29.png" alt="">
    </a>
</div>
<div class="single_con" id="PCchaojidanpin">
    <div class="superSingle" clstag="pageclick|keycount|shouye_20181018|SuperSingle_Overall">
        <ul >
            <div>
                <li class="single_one">
                    <a href="">
                        <img class="single_logo" src="">
                        <div class="single_text" clstag="pageclick|keycount|shouye_20181018|SuperSingleTitle">
                            <span class="sing_text_font">限时 限量 品质 超值</span>
                            <span class="single_text_line"></span>
                        </div>
                        <div class="single_djs">
                            <div class="djs_title">
                                <i class="icon iconfont" style="font-size:20px;position:relative;top:2px"></i>
                                <div class="s_text">距结束仅剩</div>
                            </div>
                            <div class="count_time">
                            <span id="times"
                                  style="margin-right: 20px; display:inline-block;width:180px;height:35px;line-height:35px;text-align:center;background-color:#161616;color:#fff;font-size:16px;font-family:Tahoma;font-weight:bold;-moz-border-radius:10px;border-radius:10px"/>
                            </div>
                        </div>
                    </a>
                </li>
            </div>
            <div id="msList">

            </div>

           </ul>
    </div>
</div>
<div class="brand_class_floor">
    <div class="super_brand super_brand_hover">
        <div class="brand_tittle_common">
            <a href="">
                <span class="brand_tittle_common_firstC">超级品牌</span>
                <span class="brand_tittle_common_lastC">/&nbsp;超级品牌/精品汇聚</span>
            </a>
        </div>
        <div id="brand_common">
        </div>
        <div style="clear: both"></div>
    </div>
    <div class="super_brand super_floor" style="display: none;">
        <div class="brand_tittle_common">
            <a href="">
                <span class="brand_tittle_common_firstC" style="color:#AC8602">超级品类</span>
                <span class="brand_tittle_common_lastC"
                      style="color:#c4af58;color:rgba(166,135,6,0.7)">/&nbsp;超级品类/品质甄选</span>
            </a>
        </div>
        <div class="brand_m_common " clstag="pageclick|keycount|shouye_20181018|SuperCate1_Overall">
            <a href="">
                <img class="brand_bg_img" src="image/f32751514ba94d1a.jpg" alt="">
                <div class="brand_bg_img_mc brand_bg_img_mc_two" style="background-color:#3c4561"></div>
                <div class="brand_pinpai floor_left">
                    <div class="brand_hover">
                        <div class="floor_mc">零食狂欢日</div>
                        <div class="floor_mj">欢乐钜惠</div>
                        <div class="brand_jr brand_jr_floor brand_jr_floor_hover" id="lskh">进入<i
                                class="icon iconfont"></i>
                        </div>
                    </div>
                </div>
                <div class="brand_sp_bg" clstag="pageclick|keycount|shouye_20181018|SupeCate1_Sku1">
                    <img class="brand_sp_img" src="image/dc2268445a844a54.jpg">
                </div>
                <div class="brand_sp_bg" clstag="pageclick|keycount|shouye_20181018|SupeCate1_Sku2">
                    <img class="brand_sp_img" src="image/59149324N77a88250.jpg">
                </div>
                <div class="brand_sp_bg" clstag="pageclick|keycount|shouye_20181018|SupeCate1_Sku3">
                    <img class="brand_sp_img" src="image/5b221170Nfc40038d.jpg">
                </div>
            </a>
        </div>
        <div class="brand_m_common bottom " clstag="pageclick|keycount|shouye_20181018|SuperCate2_Overall">
            <a href="">
                <img class="brand_bg_img" src="image/65672a45e051ecf4.jpg" alt="">
                <div class="brand_bg_img_mc brand_bg_img_mc_two" style="background-color:#3c4561"></div>
                <div class="brand_pinpai floor_left">
                    <div class="brand_hover">
                        <div class="floor_mc">纸为你来 心跳秒杀</div>
                        <div class="floor_mj">爆款直降</div>
                        <div class="brand_jr brand_jr_floor brand_jr_floor_hover" id="zwnl">进入<i
                                class="icon iconfont"></i>
                        </div>
                    </div>
                </div>
                <div class="brand_sp_bg" clstag="pageclick|keycount|shouye_20181018|SupeCate2_Sku1">
                    <img class="brand_sp_img" src="image/5b2b73c4Nb52cde8f.jpg">
                </div>
                <div class="brand_sp_bg" clstag="pageclick|keycount|shouye_20181018|SupeCate2_Sku2">
                    <img class="brand_sp_img" src="image/8b5fb71f3097d3cd.jpg">
                </div>
                <div class="brand_sp_bg" clstag="pageclick|keycount|shouye_20181018|SupeCate2_Sku3">
                    <img class="brand_sp_img" src="image/7292a3de34de9af1.jpg">
                </div>
            </a>
        </div>
        <div style="clear: both"></div>
    </div>
    <div style="clear: both"></div>
</div>
<div>
    <div id="needLazyLoad"></div>

    <div id="needone">

    </div>
  </div>

<div id="chat_f1">
    <div id="chat_f1_main">
        <span id="stoId" hidden >1</span>
    </div>
    <div id="storeList" class="chat_f1_expr" style="height: 200px;">

    </div>
    <!--<div id="chat_f1_bottom"></div>-->
</div>
<div class="con_width mod_you_like understand_want wrap mod_lift_floor" id="floor_knowU"
     lazyload_textarea="textareafloor_knowU" clstag="pageclick|keycount|shouye_20181018|Recommended_Overall"
     style="display: none;">
    <div class="under_log">
        <img src="image/dongni.png" alt="">
        <p class="u_log_font">可能比你自己更懂你</p>
    </div>
    <div class="you_like_list" style="padding-bottom:0px;"
         clstag="pageclick|keycount|shouye_20181018|RecommendedSku_Overall">
        <ul class="clearfix under_sp_list"></ul>
        <div class="global_loading"></div>
        <div class="loading_status loading_status_dd none ">
            <span class="line_left"></span>
            <span class="dd_font">已经到底啦</span>
            <span class="line_left line_right"></span>
        </div>
    </div>
    <div class="single_gwc_info single_gwc_info_cg" id="cartYoulikeOk">
        <div class="single_gwc_info_bg"></div>
        <div class="single_gwc_info_con">
            <i class="icon iconfont icon-dn_cg"></i><span>&nbsp;加入购物车成功</span>
        </div>
    </div>
    <div class="single_gwc_info single_gwc_info_sb" style="display:none" id="cartYoulikeFail">
        <div class="single_gwc_info_bg"></div>
        <div class="single_gwc_info_con" id="cartYoulikeFailMsg">
            <i class="icon iconfont icon-shibai"></i><span>&nbsp;加入购物车失败</span>
        </div>
    </div>
</div>
<!--content end-->
<div class="ft_wrap">
    <div class="wrap ft_footer_service clearfix" id="footerIcon" data-tpa="YHD_GLOBAl_FOOTERICON">
        <a>
            <img alt="" src="image/CgQI0lWskgmADBnsAAAPZvcSh3E68900.jpg">
            <b>正品保障</b>
            <span>正品行货 放心选购</span>
        </a>
        <a>
            <img alt="" src="image/ChEbulWsk4iADa_aAAAM544hHN818600.jpg">
            <b>满86包邮</b>
            <span>满86元 免运费</span>
        </a>
        <a>
            <img alt="" src="image/CgQIz1WslI-Adao3AAAN5b_ut2I80100.jpg">
            <b>售后无忧</b>
            <span>7天无理由退货</span>
        </a>
        <a>
            <img alt="" src="image/ChEi11WsyiyALBbiAAAN9lEEK5M33200.jpg">
            <b>准时送达</b>
            <span>收货时间由你做主</span>
        </a>
    </div>
    <div class="wrap ft_service_link clearfix">
        <div id="bottomHelpLinkId" class="ft_help_list clearfix" data-tpa="YHD_GLOBAl_FOOTER_HELP">
            <dl>
                <dt>新手入门</dt>
                <dd><a href="">购物流程</a></dd>
                <dd><a href="">会员制度</a></dd>
                <dd><a href="">订单查询</a></dd>
                <dd><a href="">服务协议及隐私说明</a></dd>
                <dd><a href="">网站地图</a></dd>
            </dl>
            <dl>
                <dt>支付方式</dt>
                <dd><a href="">货到付款</a></dd>
                <dd><a href="">网上支付</a></dd>
                <dd><a href="">礼品卡支付</a></dd>
                <dd><a href="">其它支付</a></dd>
            </dl>
            <dl>
                <dt>配送服务</dt>
                <dd><a href="">商品验货与签收</a></dd>
            </dl>
            <dl>
                <dt>售后保障</dt>
                <dd><a href="">退换货政策</a></dd>
                <dd><a href="">发票制度</a></dd>
                <dd><a href="">帮助中心</a></dd>
            </dl>
        </div>
        <!--footer 二维码 begin -->
    </div>
    <div id="footer">
        <p class="ft_footer_link">
        </p>
        <p class="ft_footer_link">
            <a href="">沪ICP备16050468号</a>
            |
            <a href="">经营证照</a>
            |
            <a href="">互联网药品信息服务资格证(沪)-经营性-2017-0006</a>
            |
            <a>违法和不良信息举报电话：0527-88100253</a>
            |
            <a href="">沪B2-20170039</a>
            |
            <a href="">沪公网安备 31010502002939号</a>
            |
            <a href="">友情链接</a>
            |
            <a href="">出版物经营许可证</a>
            |
            <a href="">增值电信业务经营许可证</a>
        </p>
        <p>Copyright© 格调同城 2007-2019，All Rights Reserved</p>
        <small id="footerbanner2LazyLoad" class="ft_pic_link">
            <a href="">
                <img alt="" src="image/CgQCr1PQy1CAF7vaAABDexsiEYM24800.jpg">
            </a>
            <a href="">
                <img alt="" src="image/ChEi1VcfPl2AC1T8AAANFrEfJlw97300.jpg">
            </a>
            <a href="">
                <img alt="" src="image/ChEi2lh171KAJrGlAAALl_uZt0E75600.jpg">
            </a>
            <a href="">
                <img alt="" src="image/ChEi1FYXHcOAVk_WAAAL2r2-yfo10200.jpg">
            </a>
            <a href="">
                <img alt="" src="image/CgQCrlPYTqCASlHXAAAd82JE0eA31000.png">
            </a>
            <a href="">
                <img alt="" src="image/5a706bb1Ne3eec0dd.png">
            </a>
        </small>
    </div>
</div>
<!--js start-->
<!--无页面级头部js时, 全局头部js下移-->
<script type="text/javascript" src="js/axios.js"></script>
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
    function _fresh() {
        var endtime = new Date("2019/4/29,17:32:00");
        var nowtime = new Date();
        var leftsecond = parseInt((endtime.getTime() - nowtime.getTime()) / 1000);
        __d = parseInt(leftsecond / 3600 / 24);
        __h = parseInt((leftsecond / 3600) % 24);
        __m = parseInt((leftsecond / 60) % 60);
        __s = parseInt(leftsecond % 60);
        var c = new Date();
        var q = ((c.getMilliseconds()) % 10);
        document.getElementById("times").innerHTML = __d + "天 " + __h + "小时" + __m + "分" + __s + "." + q + "秒";
        if (leftsecond <= 0) {
            document.getElementById("times").innerHTML = "抢购已结束";
            clearInterval(sh);
        }
    }

    _fresh()
    var sh;
    sh = setInterval(_fresh, 100);
</script>
<script type="text/javascript" src="js/axios.js"></script>
<script type="text/javascript">
    // var value=$("#times").html();
    // alert(value);
    // if(value=="抢购已结束"){
    //     document.getElementById("PCchaojidanpin").style.display="none";
    // }else{
    //     document.getElementById("PCchaojidanpin").style.display="inline";
    // }
    var resUserId;

    $(document).ready(function () {
        getSession();
        redisStore();
        selectStore();
        msShop();
        QueryMem();
        loadClassShop();
        superShopDiv();
        $("#shop").click(function(){
            window.location.href="shop.html";
        })
        $("#ljBuy").click(function () {
            alert("立即抢购!");
            var _data = {
                "storeid": stId,
                "userid": 1,
                "commodityid": 1,
                "number": 1,
                "createtime": "2018-2-10"
            }
            axios.post('http://3s284t.natappfree.cc/insertShopCar', _data)
            alert("添加购物车")
                .then(function (response) {

                    if (response.data > 0) {
                        alert("成功")
                    }

                });
        })

    })

    function getSession() {
        $.ajaxSettings.async=false;
        $.getJSON(" http://qmgeqh.natappfree.cc/selUser",function(data){
            if(data.Nickname==null||data.Nickname==""||data.Nickname=="null"){
                document.getElementById("global_login").style.display = "none";
                document.getElementById("global_unlogin").style.display = "inline";
            }
            $("#name").text(data.Nickname)
            if(data.Nickname!=null && data.Nickname!=" "&&data.Nickname!="null"){
                alert("biaoshi"+data.Nickname)
                resUserId=data.userid;
                alert(resUserId);
                document.getElementById("global_login").style.display = "inline";
                document.getElementById("global_unlogin").style.display = "none";
                if(data.Member==0){
                    $('#imgValidateCode').attr("src", "img/vip0.png");
                }else if(data.Member==1){
                    $('#imgValidateCode').attr("src", "img/vip1.png");
                }else if(data.Member==2){
                    $('#imgValidateCode').attr("src", "img/vip2.png");
                }else if(data.Member==3){
                    $('#imgValidateCode').attr("src", "img/vip3.png");
                }
            }
        })


    }


    function selectStore(){
        $.getJSON(" http://ivr3ur.natappfree.cc/QueryAllStores",function(data){
            var div="";
            for(var i=0;i<data.length;i++){
                div+="  <div class=\"list\">\n" +
                    "            <div class=\"name\">\n" +
                    "                <a title='地址："+data[i].region+"' onclick='storeShop("+data[i].id+")' href='javascript:void(0);' hidefocus='true'>"+data[i].name+"</a>\n" +
                    "            </div>\n" +
                    "        </div>\n"

            }
            $("#storeList").append(div);
        })
    }

    var stId="";

    function storeShop(id){
        $.getJSON(" http://ivr3ur.natappfree.cc/toRedisStoreId",{"id":id},function(data){

            if(data==1){
                window.location.reload();
            }
        })

        }

    function redisStore(){
        $.ajaxSettings.async=false;
        $.getJSON(" http://ivr3ur.natappfree.cc/getRedisStoreId",function(data){
            $("#stoId").text(data);
        })
        $.ajaxSettings.async=true;
        stId=$("#stoId").text();

    }

    function brandHtml(value){
        window.location.href="brandShop.html?value="+value;
    }

    //加载超级极品牌的框架
    function superShopDiv(){
        var _super={
            "storeid":stId,
        }
        $.getJSON(" http://ivr3ur.natappfree.cc/selectBrand",_super,function(data){
            var _div="";
            for(var i=0;i<4;i++)
            {
                var _brand=data[i].brand;
                _div+="<div class='brand_m_common' style='margin-bottom: 10px;display: inline-block;'>\n" +
                    "            <a href=\"\">\n" +
                    "                   <div class=\"brand_bg_img_mc brand_bg_img_mc_one\"></div>\n" +
                    "                </a><div style='padding-left: 30px;' class=\"brand_pinpai brand_pinpai_hover\"><a href=\"\">\n" +
                    "                    <div class=\"brand_pb_t\"><span id=\"baishi\">"+data[i].brand+"</span>专场</div>\n" +
                    "                    <div class=\"brand_pb_two\">欢乐钜惠</div>\n" +
                    "                    </a><div class=\"brand_jr\"><a href='javascript:void(0);' style='color:white;' onclick='brandHtml(\""+data[i].brand+"\")'>进入</a><i class=\"icon iconfont\"></i></div>\n" +
                    "                </div>\n" +
                    "<div>"+shopPic(_brand)+
                    "</div>"+
                    "        </div>";
            }
            $("#brand_common").append(_div);
        })


    }

    //加载商品图片
    function shopPic(_brand){
        var shop =  {
            "storeid": stId,
            "pageSize": 10,
            "pageNo": 1,
            "state": 1,
            "brand":_brand
        }
        var div="";
        $.ajaxSettings.async=false;
        $.getJSON(" http://ivr3ur.natappfree.cc/selectAllCom",shop,function(data){
            for(var i=0;i<3;i++){
                div+="<div class=\"brand_sp_bg\" clstag=\"pageclick|keycount|shouye_20181018|SuperBrand1_Sku3\">\n" +
                    "                    <img class=\"brand_sp_img\" src='"+data.path+"'>\n" +
                    "</div>\n" ;
            }
        })
        $.ajaxSettings.async=true;
        return div;
    }

    //加载商品
    function QueryMem(){
        $.getJSON("http://ivr3ur.natappfree.cc/QueryMem",{"storeid":stId},function(data){
            var str="";
            str+="<div class=\"con_width quality_imoport eat_all_world\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_Overall\">\n" +
                "        <div class=\"qua_show\">\n" +
                "            <a href=\"\" class=\"spe_tit qua_tit\">\n" +
                "                <span class=\"qua_tit_spanFirst qua_tit_spanFirst_top\" style=\"color:#B77347\">会员专区</span>\n" +
                "                <span class=\"qua_tit_spanLast\" style=\"color:#cd9d7f;color:rgba(183,115,71,0.7)\">/ 享受最优惠</span>\n" +
                "            </a>\n" +
                "            <div class=\"qua_show_con\">\n" +
                "                <img class=\"qua_show_con_left\" src=\"image/1a09d70d7e71a716.png\" data-imgattr=\"wideimg\">\n" +
                "                <div class=\"qua_show_con_right\">\n" +
                "                    <a href=\"\" class=\"import_snacks\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_sku1\">\n" +
                "                        <p class=\"import_tit\">"+data[0].name+"</p>\n" +
                "                        <div class=\"buy_btn\" id=\"jkls\">点击进入</div>\n" +
                "                        <img src="+data[0].path+" data-imgattr=\"wideimg\">\n" +
                "                    </a>\n" +
                "                    <a href=\"\" class=\"bursting\" style=\"border-right:1px solid #f6f6f6\"\n" +
                "                       clstag=\"pageclick|keycount|shouye_20181018|scenario1_sku2\">\n" +
                "                        <p class=\"burting_font burting_font_color\">"+data[1].name+"</p>\n" +
                "                        <p class=\"bkzj\">超值满减</p>\n" +
                "                        <img src="+data[1].path+" data-imgattr=\"wideimg\">\n" +
                "                    </a>\n" +
                "                    <a href=\"\" class=\"bursting\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_sku3\">\n" +
                "                        <p class=\"burting_font burting_font_color\">"+data[2].name+"</p>\n" +
                "                        <p class=\"bkzj\">领券满减</p>\n" +
                "                        <img src="+data[2].path+" data-imgattr=\"wideimg\">\n" +
                "                    </a>\n" +
                "                    <a href=\"\" class=\"bursting \" style=\"border-right:1px solid #f6f6f6;\"\n" +
                "                       clstag=\"pageclick|keycount|shouye_20181018|scenario1_sku4\">\n" +
                "                        <p class=\"burting_font burting_font_color\">"+data[3].name+"</p>\n" +
                "                        <p class=\"bkzj\">2件立减</p>\n" +
                "                        <img src="+data[3].path+" data-imgattr=\"wideimg\">\n" +
                "                    </a>\n" +
                "                    <a href=\"\" class=\"bursting\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_sku5\">\n" +
                "                        <p class=\"burting_font burting_font_color\">"+data[4].name+"</p>\n" +
                "                        <p class=\"bkzj\">满减优惠</p>\n" +
                "                        <img src="+data[4].path+" data-imgattr=\"wideimg\">\n" +
                "                    </a>\n" +
                "                    <a href=\"\" class=\"import_snacks\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_sku6\">\n" +
                "                        <p class=\"import_tit\">"+data[5].name+"</p>\n" +
                "                        <p class=\"voucher_tit\">低至5折</p>\n" +
                "                        <div class=\"buy_btn\" id=\"rbmz\">点击进入</div>\n" +
                "                        <img src="+data[5].path+" data-imgattr=\"wideimg\">\n" +
                "                    </a>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "        <div class=\"qua_top rank_list_class\" id=\"qua_topId\" data_index=\"0\" rank_category_id=\"5019\"\n" +
                "             rank_category_name=\"进口食品\" rank_category_type=\"2\" search_flag=\"1\">\n" +
                "            <img class=\"qua_paihang\" src=\"image/paihangbang.png\" data-imgattr=\"wideimg\">\n" +
                "            <p class=\"qua_top_font\">进口食品热销榜 </p>\n" +
                "            <p>爆款热卖 实时更新</p>\n" +
                "            <div class=\"qua_top_slideCon\">\n" +
                "                <div class=\"qua_top_slidInner\" style=\"width:1000px;height:100%\">\n" +
                "                    <ul class=\"qua_top_slideCon_ul\"><a href=\"\"\n" +
                "                                                       clstag=\"pageclick|keycount|shouye_20181018|scenario1_RankSku1\">\n" +
                "                        <li class=\"qua_top_imgCon\">\n" +
                "                            <div class=\"qua_imgCon_font\">TOP1</div>\n" +
                "                            <img src=\"image/5af8f2dbN57a92e01.jpg\"\n" +
                "                                 title=\"德国DMK进口牛奶  欧德堡（Oldenburger）超高温处理全脂纯牛奶200ml*24盒\"\n" +
                "                                 alt=\"德国DMK进口牛奶  欧德堡（Oldenburger）超高温处理全脂纯牛奶200ml*24盒\"></li>\n" +
                "                    </a><a href=\"\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_RankSku2\">\n" +
                "                        <li class=\"qua_top_imgCon\">\n" +
                "                            <div class=\"qua_imgCon_font tit_two\">TOP2</div>\n" +
                "                            <img src=\"image/586b74afN5939fab5.jpg\" title=\"新西兰原装进口牛奶 安佳Anchor全脂牛奶UHT纯牛奶250ml*24 整箱装\"\n" +
                "                                 alt=\"新西兰原装进口牛奶 安佳Anchor全脂牛奶UHT纯牛奶250ml*24 整箱装\"></li>\n" +
                "                    </a><a href=\"\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_RankSku3\">\n" +
                "                        <li class=\"qua_top_imgCon\">\n" +
                "                            <div class=\"qua_imgCon_font tit_three\">TOP3</div>\n" +
                "                            <img src=\"image/963190b232ae6c8e.jpg\" title=\"德国 进口牛奶 Arla爱氏晨曦 全脂牛奶 200ml*24 整箱装\"\n" +
                "                                 alt=\"德国 进口牛奶 Arla爱氏晨曦 全脂牛奶 200ml*24 整箱装\"></li>\n" +
                "                    </a></ul>\n" +
                "                    <ul class=\"qua_top_slideCon_ul\"><a href=\"\"\n" +
                "                                                       clstag=\"pageclick|keycount|shouye_20181018|scenario1_RankSku4\">\n" +
                "                        <li class=\"qua_top_imgCon\">\n" +
                "                            <div class=\"qua_imgCon_font\">TOP4</div>\n" +
                "                            <img src=\"image/5b44150eN15f67ca3.jpg\"\n" +
                "                                 title=\"德国原装进口牛奶 德亚（Weidendorf）全脂纯牛奶 200ml*30盒 整箱装（新老包装随机发货）\"\n" +
                "                                 alt=\"德国原装进口牛奶 德亚（Weidendorf）全脂纯牛奶 200ml*30盒 整箱装（新老包装随机发货）\"></li>\n" +
                "                    </a><a href=\"\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_RankSku5\">\n" +
                "                        <li class=\"qua_top_imgCon\">\n" +
                "                            <div class=\"qua_imgCon_font tit_two\">TOP5</div>\n" +
                "                            <img src=\"image/5816dce5N70820f42.jpg\" title=\"新西兰进口牛奶 纽仕兰 3.5g蛋白质全脂牛奶 250ml*24整箱装纯牛奶\"\n" +
                "                                 alt=\"新西兰进口牛奶 纽仕兰 3.5g蛋白质全脂牛奶 250ml*24整箱装纯牛奶\"></li>\n" +
                "                    </a><a href=\"\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_RankSku6\">\n" +
                "                        <li class=\"qua_top_imgCon\">\n" +
                "                            <div class=\"qua_imgCon_font tit_three\">TOP6</div>\n" +
                "                            <img src=\"\" title=\"德国 进口牛奶 Arla爱氏晨曦 全脂纯牛奶 1L*12 整箱装\" alt=\"德国 进口牛奶 Arla爱氏晨曦 全脂纯牛奶 1L*12 整箱装\">\n" +
                "                        </li>\n" +
                "                    </a></ul>\n" +
                "                    <ul class=\"qua_top_slideCon_ul\"><a href=\"\"\n" +
                "                                                       clstag=\"pageclick|keycount|shouye_20181018|scenario1_RankSku7\">\n" +
                "                        <li class=\"qua_top_imgCon\">\n" +
                "                            <div class=\"qua_imgCon_font\">TOP7</div>\n" +
                "                            <img src=\"image/587d8999N301d4489.jpg\" title=\"韩国进口三养（SAMYANG）方便面 火鸡面 超辣鸡肉味拌面 700g（140g*5包入）\"\n" +
                "                                 alt=\"韩国进口三养（SAMYANG）方便面 火鸡面 超辣鸡肉味拌面 700g（140g*5包入）\"></li>\n" +
                "                    </a><a href=\"\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_RankSku8\">\n" +
                "                        <li class=\"qua_top_imgCon\">\n" +
                "                            <div class=\"qua_imgCon_font tit_two\">TOP8</div>\n" +
                "                            <img src=\"image/5af8f30bNdd8ab8ff.jpg\" title=\"德国DMK进口牛奶  欧德堡（Oldenburger）超高温处理脱脂牛奶200ml*24盒\"\n" +
                "                                 alt=\"德国DMK进口牛奶  欧德堡（Oldenburger）超高温处理脱脂牛奶200ml*24盒\"></li>\n" +
                "                    </a><a href=\"\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_RankSku9\">\n" +
                "                        <li class=\"qua_top_imgCon\">\n" +
                "                            <div class=\"qua_imgCon_font tit_three\">TOP9</div>\n" +
                "                            <img src=\"image/be41b8e2225ba0da.jpg\" title=\"越南进口 中原G7三合一速溶咖啡1600g (16gx100条）（新老包装交替发货）\"\n" +
                "                                 alt=\"越南进口 中原G7三合一速溶咖啡1600g (16gx100条）（新老包装交替发货）\"></li>\n" +
                "                    </a></ul>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "            <span class=\"qua_top_btn qua_top_left_btn qua_top_btn_forbid\">\n" +
                "<i class=\"icon iconfont2018\"></i>\n" +
                "</span>\n" +
                "            <span class=\"qua_top_btn qua_top_right_btn\">\n" +
                "<i class=\"icon iconfont2018 qua_top_icon_right\"></i>\n" +
                "</span>\n" +
                "        </div>\n" +
                "        <div style=\"clear:both\"></div>\n" +
                "    </div>";
            $("#needone").html(str);
        })
    }


    //加载商品
    function loadClassShop(){
        $.getJSON(" http://ivr3ur.natappfree.cc/QueryClassone",{"storeid":stId},function(data){
            var li="";
            for(var i=0;i<4;i++){
                var _classone=data[i].classone;
                li+=" <div class=\"con_width quality_imoport eat_all_world\" clstag=\"pageclick|keycount|shouye_20181018|scenario1_Overall\">\n" +
                    "        <div class=\"qua_show\">\n" +
                    "            <div>\n" +
                    "                <a href=\"\" class=\"spe_tit qua_tit\">\n" +
                    "                    <span class=\"qua_tit_spanFirst qua_tit_spanFirst_top\" style=\"color:#B77347\">"+data[i].classonename+"</span>\n" +
                    "                    <span class=\"qua_tit_spanLast\" style=\"color:#cd9d7f;color:rgba(183,115,71,0.7)\"></span>\n" +
                    "                </a>\n" +
                    "            </div>\n" +
                    "            <div class=\"qua_show_con\">\n" +
                    "                <img class=\"qua_show_con_left\" src=\"image/0495991261171cf8.jpg\" data-imgattr=\"wideimg\">\n" +
                    "                <div class=\"qua_left_font_con\">\n" +leftShop(_classone)+
                    "                </div>\n" +
                    "                <div style='padding-left:10px; ' class=\"qua_show_con_right\">\n" +rightShop(_classone)+
                    "                </div>\n" +
                    "            </div>\n" +
                    "        </div>\n" +
                    "        <div style=\"clear:both\"></div>\n" +
                    "    </div>"
            }
            $("#needLazyLoad").append(li);
        });

    }

    //左边的二级分类
    function leftShop(_classone){
        var html="";
        $.ajaxSettings.async=false;
        var _data={
            "storeid":stId,
            "classone":_classone
        };
        $.getJSON(" http://ivr3ur.natappfree.cc/QueryClasstwo",_data,function(data){
            for(var i=0;i<data.length;i++){
                html+=" <a href='javascript:void(0);' onclick='toShop("+data[i].classtwo+")' class='qua_left_f_con_font qua_cor'\n>" +
                    " <div class='qua_left_f_con_font live_cor'>"+data[i].classtwoname+"</div></a>" ;
            }
        });
        $.ajaxSettings.async=true;
        return html;
    }

    function toShop(classtwo){
        window.location.href="shop.html?getValue="+classtwo;
    }
    function searchMeForClick() {
        var sjfl=document.getElementById("keyword").value;
        $.getJSON("  http://qmgeqh.natappfree.cc/selectIdByClassthreename",{"classthreename":sjfl},function(data){
            window.location.href="shop.html?value="+data;
        })
    }
    function  tc() {
        $.getJSON("  http://qmgeqh.natappfree.cc/tc",function(data){
            window.location.href="gdtcIndex.html";

        })

  }
    //根据三级分类查商品
    function rightShop(_classone){
        var div="";
        $.ajaxSettings.async=false;
        var shop = {
            "storeid": stId,
            "classone":_classone,
        }
        $.getJSON("  http://ivr3ur.natappfree.cc/selectThree",shop,function(data){
            for(var i=0;i<data.length;i++){
                var _classThree=data[i].classthree;
                div+=" <div class=\"import_snacks import_snacks_delicate_bg \"><a href=''>" +
                    "                        <p class=\"import_tit live_import_tit\">"+data[i].classthreename+"</p>\n" +
                    "                        <p class=\"voucher_tit live_voucher_tit\">爆款直降</p>\n" +
                    "                        <div class=\"buy_btn live_buy_btn\"\n" +
                    "                             style='border:1px solid rgba(209,90,160,0.50)!important;color:#D15AA0!important;' >\n" +
                    "                           <a style='color: #a858a0' href='javascript:void(0);' onclick='selectShop("+data[i].classthree+")'>点击进入</a> \n" +
                    "                        </div>\n" +selectPic(_classThree)+
                  "  </a></div>\n" ;
            }
        });

        $.ajaxSettings.async=true;
        return div;
    }

    //查看图片三级
    function selectPic(_threeClass){
        $.ajaxSettings.async=false;
        var shop = {
            "storeid": stId,
            "classthreeid":_threeClass,
        }
        var img="";
        $.getJSON(" http://ivr3ur.natappfree.cc/getComByClassid",shop,function(data){
            if(data.length>0){
            for(var i=0;i<1;i++){
                img+=" <img src='"+data[i].path+"' data-imgattr=\"wideimg\">"
             }
            }
        })
        $.ajaxSettings.async=true;
        return img;
    }

    function selectShop(_nameShop) {
        window.location.href="shop.html?value="+_nameShop;
    }

    //加载秒杀商品
    function msShop() {
        var shop = {
            "storeid": stId,
            "pageSize": 9,
            "pageNo": 1,
            "state": 1
        };
        $.getJSON(" http://ivr3ur.natappfree.cc/secondcommoditys/QueryAllSecond", shop, function (response) {
            var li = "";
            var num = 1;
            for (var i = 0; i < response.length; i++) {
                li += '<li grouponid="100696544 ' + num + '" data-pricedone="1">\n' +
                    '<a href="/SingleShop.html  " target="_blank" title="库存还剩余:' + response[i].stock + '" class="superSingle_a" clstag="pageclick|keycount|shouye_20181018|SuperSingle1">\n' +
                    '<div class="single_top">\n' +
                    '<div class="s_bz">\n' +
                    '</div>\n' +
                    '<img class="single_top_img"src="' + response[i].path + '" alt="">\n' +
                    '</div>\n' +
                    '<div class="single_bottom">\n' +
                    '<div class="s_title">' + response[i].name + '</div>\n' +
                    '<div class="s_bar">\n' +
                    '<div class="s_progress" style="width:46% ">\n' +
                    '</div>\n' +
                    '</div>\n' +
                    '<div class="s_con">\n' +
                    '<div class="s_num">\n' +
                    '<span class="s_num_unit">￥</span>\n' +
                    '<span class="s_num_act">' + response[i].zk + '</span>\n' +
                    '<span class="s_num_underline">\n' +
                    '<span class="s_num_unit">￥</span>\n' +
                    '<span class="s_num_line">' + response[i].price + '</span>\n' +
                    '</span>\n' +
                    '</div>\n' +
                    '</div>\n' +
                    '</div>\n' +
                    '</a>\n' +
                    '</li>';
            }
            $(".superSingle ul").append(li);
        })
    }
</script>
</body>
</html>